import request from '@/utils/request'

// 查询执行重大安保任务列表
export function listSecurity(query) {
  return request({
    url: '/security/security/list',
    method: 'get',
    params: query
  })
}

// 查询执行重大安保任务详细
export function getSecurity(id) {
  return request({
    url: '/security/security/' + id,
    method: 'get'
  })
}

// 新增执行重大安保任务
export function addSecurity(data) {
  return request({
    url: '/security/security',
    method: 'post',
    data: data
  })
}

// 修改执行重大安保任务
export function updateSecurity(data) {
  return request({
    url: '/add/add/update6',
    method: 'put',
    data: data
  })
}

// 删除执行重大安保任务
export function delSecurity(id) {
  return request({
    url: '/security/security/' + id,
    method: 'delete'
  })
}

// 输入账号，获取人名
export function getFirefighterIdCard(idCardNumber) {
  return request({
    url: '/add/add/firefighterIdCard',
    method: 'post',
    data: {
      idCardNumber: idCardNumber
    }
  })
}
// 批量添加
export function addSecurityList(data) {
  return request({
    url: '/add/add/security',
    method: 'post',
    data: data
  })
}
